package com.qmrssreader.dto;

import java.util.Date;

public class GroupItem {

	private String name;
	private String link;
	private boolean checked;
	private Date pubDate;

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public GroupItem() {
		name = "";
		link = "";
		pubDate = null;
		checked = false;
	}

	public GroupItem(String pName, String pLink, boolean pCheck) {
		this.name = pName;
		this.link = pLink;
		this.pubDate = null;
		checked = pCheck;
	}

	public GroupItem(String pName, String pLink, Date pDate) {
		this.name = pName;
		this.link = pLink;
		this.pubDate = pDate;
		checked = false;
	}

	public void toggleChecked() {
		checked = !checked;
	}
}
